<?php

class CommonControl extends Control
{
    /**
     * 记分器
     * @var bool
     * array(
     *  'reply_team'=>'a',//答题队
     *  'a'=>array('name'=>'猛虎队','point'=>0);
     * );
     */
    //回答团队
    protected $_team;
    //当前回答团队
    protected $_problem;

    public function __construct()
    {
        parent::__construct();
        $db = M();
        //组信息
        $this->_team = $db->table('team')->all();
        //当前回答组
        $this->_problem = $db->table('problem')->find();
    }
}